const mongoose = require('mongoose')

const AvatarSchema = new mongoose.Schema({
  id: {
    type: String
  },
  data: {
    type: Buffer,
    require: true
  },
  contentType: {
    type: String,
    require: true
  }
})
const AvatarModel = mongoose.model('avatar', AvatarSchema)

module.exports = AvatarModel
